/*
 * @Descripttion:
 * @version: 1.0
 * @Author: 狸猫
 * @Date: 2023-11-27 15:56:18
 * @LastEditors: 狸猫
 * @LastEditTime: 2024-04-13 15:05:50
 */
import request from "@/utils/request";

// 查询房屋成员
export function memberList(query) {
  return request({
    url: '/enterprise/house/member/list',
    method: 'get',
    params: query,
  })
}

// 删除成员
export function delMember(data) {
  return request({
    url: "/enterprise/house/member/" + data.memberId,
    method: "delete",
    data:data
  });
}

// 修改预定时间
export function updateReservationInfo(data) {
  return request({
    url: "/enterprise/order/order/updateReservationInfo",
    method: "post",
    data: data,
  });
}

// 查询房间详情
export function getOrder(orderId) {
  return request({
    url: "/enterprise/order/order/" + orderId,
    method: "get",
  });
}

// 新增成员
export function addMember(data) {
  return request({
    url: "/enterprise/house/member",
    method: "post",
    data: data,
  });
}

// 编辑成员
export function editMember(data) {
  return request({
    url: "/enterprise/house/member",
    method: "put",
    data: data,
  });
}

// 修改房管员信息(入住/不入住)
export function editManager(data) {
  return request({
    url: "/enterprise/house/member/editManager",
    method: "put",
    data: data,
  });
}
